package com.mikufufu.blog.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 标签表
 * 
 */
@Data
@TableName(value = "blog_tag")
public class Tag implements Serializable {
    /**
     * 标签主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "标签主键")
    private Integer id;

    /**
     * 标签名称
     */
    @TableField(value = "tag_name")
    @ApiModelProperty(value = "标签名称")
    private String tagName;

    /**
     * 标签图标
     */
    @TableField(value = "icon")
    @ApiModelProperty(value = "标签图标")
    private String icon;

    /**
     * 图标颜色
     */
    @TableField(value = "color")
    @ApiModelProperty(value = "图标颜色")
    private String color;

    /**
     * 标签类型（0.文章标签,1.相册标签）
     */
    @TableField(value = "tag_type")
    @ApiModelProperty(value = "标签类型（0.文章标签,1.相册标签）")
    private Integer tagType;

    /**
     * 标签描述
     */
    @TableField(value = "remark")
    @ApiModelProperty(value = "标签描述")
    private String remark;

    /**
     * 标签创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "标签创建时间")
    private Date createTime;

    /**
     * 标签状态（0.生效,1.失效）
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value = "标签状态（0.生效,1.失效）")
    private String status;

    private static final long serialVersionUID = 1L;
}